﻿@model DAL.Models.Reservaciones

@{
    ViewBag.Title = "Reservar";
}

<h2>Reservar</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Reservaciones</legend>

        <div class="editor-label">
            @Html.Label("Socio: ") @Html.DisplayText("SocioNombreCompleto")
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.MaterialId, "Material")
        </div>
        <div class="editor-field">
            @Html.DropDownList("MaterialId", String.Empty)
            @Html.ValidationMessageFor(model => model.MaterialId)
        </div>

        <p>
            <input type="submit" value="Reservar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver al Listado", "Index")
</div>
